Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

394
Views
[Unhandled promise rejection: Error: Location "imageURL" isn't readable - Expo React Native

I am trying to convert an firebase image URL to base64 using expo FileSystem but getting following error.

[Unhandled promise rejection: Error: Location "https://pngimg.com/uploads/birds/small/birds_PNG108.png" isn't readable - Expo React Native

URL is totally fine and perfect as I can open it in browser. I am trying following URL, and tried multiple other URLs as well.

https://pngimg.com/uploads/birds/small/birds_PNG108.png

Following is my code.

import * as FileSystem from 'expo-file-system';
<TouchableOpacity onPress={async () => {
      const base64 = await FileSystem.readAsStringAsync('https://pngimg.com/uploads/birds/small/birds_PNG108.png', { encoding: 'base64' });
        Share.share(
          {
            title: 'test title',
            url: item.url,
          },
          {
            excludedActivityTypes: [
              
            ],
          }
        );
     }}>
    </TouchableOpacity>
    
  )}

Couldn't find any solution to this problem on any forum.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Maybe you should rather use

import * as Sharing from 'expo-sharing';

Save the image temporary on disc and use the uri to share the image.

than

import { Share} from 'react-native';

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!